<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Universum.Model.Domain.Article>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Details
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Details</h2>

    <fieldset>
        <legend>Fields</legend>
        
        <p>
            Title:
            <%= Html.Encode(Model.Title) %>
        </p>
        <p>
            Text:
            <%= Html.Encode(Model.Text) %>
        </p>
        <p>
            Publish:
            <%= Html.Encode(String.Format("{0:g}", Model.Publish)) %>
        </p>
        <p>
            Created:
            <%= Html.Encode(String.Format("{0:g}", Model.Created)) %>
        </p>
    </fieldset>
    <p>
        <%=Html.UserActionLink<ArticleController>(ar=>ar.Edit(null), "Edit", new {  id=Model.Slug  }) %> |
        <%=Html.ActionLink<ArticleController>( ar=>ar.Index(), "Back to List") %>
    </p>

</asp:Content>

